<admintpl file="header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('NewsColumnEntrance/entranceManageList',array($id_type=>$id_val))}" >入口管理</a></li>
        <li ><a href="{:U('NewsColumnEntrance/type_index',array($id_type=>$id_val))}" >类型管理</a></li>
        <li class="active"><a href="{:U('NewsColumnEntrance/addEntranceType',array($id_type=>$id_val))}" >添加类型</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form" id="myform" action="{:U('NewsColumnEntrance/addColumnEntranceType')}"
			  enctype="multipart/form-data">
         <div class="control-group">
            <label class="span1 control-label" style="width: 90px;"><span style="color:red;">*</span>类型标题</label>
            <div class="span3">
            	<input type="text" name="title" value="{$info_data.title}" id="title">
            </div>
        </div>

		<div class="control-group">
			<label class="span1 control-label" style="width: 90px;"><span style="color:red;">*</span>数量</label>
			<div class="span3">
				<input type="text" name="num" value="{$info_data.num}" id="num">
			</div>
		</div>
		<div class="control-group">
			<label class="span1 control-label" style="width: 90px;">数量类型</label>
			<div class="span3">
				<select name="type">
					<option value="1">等于</option>
					<option value="2">大于等于</option>
				</select>
			</div>
		</div>
		
		<input type="hidden" name="{$id_type}" id="{$id_type}" value="{$id_val}">
		<input type="hidden" name="type_id" id="type_id" value="<?php echo $info_data['type_id'];?>">
        <div class="form-actions" style="padding-left:260px;">
        	<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
            &nbsp;&nbsp;<a class="btn" href="{:U('NewsColumnEntrance/index',array($id_type=>$id_val))}">{:L('BACK')}</a>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript"
        src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
</body>
</html>